package com.jmlee.service;


import com.jmlee.pojo.AShop;
import com.jmlee.pojo.Admin;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * 商家后台管理
 *
 * @author xl W
 * @date 2021/3/13 15:58
 */


public interface ShopService {

    //=================================商家后台管理=======================

    /**
     * 添加后台商家
     *
     * @param
     * @return
     */
    int addShop(AShop shop);

    /**
     * 后台删除
     *
     * @author xl W
     * @date 2021/3/5 23:39
     */
    boolean shopDelete(AShop shop);

    /**
     * 商家表格数据
     * @author  xl W
     * @date 2021/3/18 11:16
     */
    int selectShopListCount(AShop shop);

    //商家审核通过
    boolean shuoCan(String aId);
    //商家审核不通过
    boolean shopNoPass(String aId);


/**
 * 商家表格数据
 * @author  xl W
 * @date 2021/3/18 11:16
 */
    List<AShop> selectShopList(AShop shop, RowBounds rowBounds);

    /**
     * 商家禁用
     * @author  xl W
     * @date 2021/3/18 11:16
     */
    boolean shopForbidden(AShop shop);

    /**
     * 商家启用
     * @author  xl W
     * @date 2021/3/18 11:16
     */
    boolean shopStart(AShop shop);



    /**
     * 根据id查询商店信息
     */
    AShop queryShopById(Long aid);

    AShop selectShop(Admin admin);

    /**
     * 修改商铺信息
     * @param aShop
     * @return
     */
    Integer editShopInfo(AShop aShop);

}
